﻿using System.Collections.Generic;
using System.Linq;
using Inscriptionem.Areas.Inscriptionem.Models.Enums;
using Inscriptionem.Areas.Inscriptionem.Models.Requests;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class CategoryViewModel : CategoryRequestModel
    {
        public CategoryViewModel()
        {
            Languages = new ORM.DB().Languages.OrderBy(l => l.Order);
        }

        public IEnumerable<ORM.Language> Languages { get; protected set; }

        public CategoryError Error { get; set; }
    }
}